﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CountyStatistics.aspx.cs" Inherits="HNQXYJ.HN_DATA.CountyStatistics" %>
<%@ OutputCache Duration="1" VaryByParam="*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/highcharts.js" type="text/javascript"></script>
    <script src="../Scripts/exporting.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
      <script type="text/javascript">
        var chart;
        $(document).ready(function() {
             chart = new Highcharts.Chart({             
                chart: {
                    renderTo: 'container',          //放置图表的容器
                    defaultSeriesType: 'column',    //图表类型line, spline, area, areaspline, column, bar, pie , scatter
                    //zoomType: 'x',                  //放大
                    inverted: false                  //左右显示，默认上下正向
                },
                title: {                            
                    text: '<%=rankName %>终端状态统计',        //图标的标题
                    style:{}                        //标题样式
                },
                subtitle: {                         
                    text: '按预警大喇叭统计'              //图标的副标题
                },
                xAxis: {                            
                    categories: <%= xAxisCategories %>, //X轴的坐标值
                    labels: {
                        rotation: -45,
                        align: 'right',
                        style: {font: 'normal 14px 宋体'}
                    }
                },
                yAxis: {
                    min: 0,
                    title: {text: '数量（终端台数）'}  //Y轴坐标标题  labels:纵柱标尺
                },
                legend: {                               //【图例】位置样式
                    layout: 'horizontal',               //【图例】显示的样式：水平（horizontal）/垂直（vertical）
                    backgroundColor: '#FFFFFF',
                    borderColor: '#d5e4e7 ',
                    borderWidth: 1,
                    align: 'center',
                    verticalAlign: 'top',
                    enabled:true,
                    //x: 100,
                    y: 50,
                    //floating: true,
                    shadow: true
                },
                //loading: {  需要配合chart.showLoading();使用
                //    hideDuration: 10000,
                //    showDuration: 10000
                //},
                tooltip: {
                    formatter: function() {                 //当鼠标悬置数据点时的格式化提示
                        return '<b>'+ this.x +'</b><br/>'+ this.series.name + ': '+ Highcharts.numberFormat(this.y, 1);
                    }
                },
                credits: {
                    enabled: false
                },
                plotOptions: {
                    column: {
                        pointPadding: 0.2,  //图表柱形的
                        borderWidth: 0 ,     //图表柱形的粗细  
                        pointWidth:20    //你想显示的宽度(number型）
                        
                    },bar: {
                        dataLabels: {
                            enabled: false                          
                        }
                    }
                },
                series: <%= returnValue %> 
            });
           
            //chart.showLoading();
        });
    </script>
     <div id="container" style=" text-align:center;min-width: 800px; height: 600px; margin: 0 2em"></div>
     <div class="result"></div>
    </form>
</body>
</html>
